package com.beidou.ntlmv2.filter;

import java.security.Principal;

/**
 * Stores a principal authenticated through NTLM.
 *
 * @author Marcel Schoen
 */
public class NtlmV2Principal implements Principal {

  /**
   * Stores the NTLM username.
   */
  private String userName = null;

  /**
   * Creates an NTLM principal holder.
   *
   * @param userName The Windows username.
   */
  public NtlmV2Principal(String userName) {
    this.userName = userName;
  }

  /* (non-Javadoc)
   * @see java.security.Principal#getName()
   */
  @Override
  public String getName() {
    return this.userName;
  }
}
